projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20280af
)
* lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h>
author
Jim Blandy
<jimb@redhat.com>
Fri, 14 May 1993 14:42:01 +0000
(14:42 +0000)
committer
Jim Blandy
<jimb@redhat.com>
Fri, 14 May 1993 14:42:01 +0000
(14:42 +0000)
to get the extern declarations for atof. That's where it is in
POSIX.
src/data.c
patch
|
blob
|
history
src/lread.c
patch
|
blob
|
history
diff --git
a/src/data.c
b/src/data.c
index c4473c8cbd3b6ccddd8f7254ac294caa8b62449d..db726c0f8b2c587ab58244c9ae575e81926f5128 100644
(file)
--- a/
src/data.c
+++ b/
src/data.c
@@
-31,6
+31,9
@@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "syssignal.h"
#ifdef LISP_FLOAT_TYPE
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
#include <math.h>
#endif /* LISP_FLOAT_TYPE */
diff --git
a/src/lread.c
b/src/lread.c
index 8615288f06bd71046bf4c6dfe58f220b837d045e..aa211716a0ad629af2f99733a93841bc4d839b5b 100644
(file)
--- a/
src/lread.c
+++ b/
src/lread.c
@@
-45,6
+45,9
@@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#endif
#ifdef LISP_FLOAT_TYPE
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
#include <math.h>
#endif /* LISP_FLOAT_TYPE */